package main
import(
	"fmt"
)

func init(){
	fmt.Println("aaa")
}

//传值和传引用
func main(){
	var a int = 1
	var b int = 2
	test(a,b)
	fmt.Printf("a = %d , b = %d \n",a,b)
	test1(&a,&b)
	fmt.Printf("a = %d , b = %d \n",a,b)
}

func test(a int,b int){
	a++
	b++
}

func test1(a *int,b *int){ //指针类型 *int
	*a++
	*b++
}